import request from '@/utils/request'

// 查询仓库销售流水列表
export function listStorageSalesInfo(query) {
  return request({
    url: '/goods/storageSalesInfo/list',
    method: 'get',
    params: query
  })
}

// 查询仓库销售流水详细
export function getStorageSalesInfo(id) {
  return request({
    url: '/goods/storageSalesInfo/' + id,
    method: 'get'
  })
}

// 新增仓库销售流水
export function addStorageSalesInfo(data) {
  return request({
    url: '/goods/storageSalesInfo',
    method: 'post',
    data: data
  })
}

// 修改仓库销售流水
export function updateStorageSalesInfo(data) {
  return request({
    url: '/goods/storageSalesInfo',
    method: 'put',
    data: data
  })
}

// 删除仓库销售流水
export function delStorageSalesInfo(id) {
  return request({
    url: '/goods/storageSalesInfo/' + id,
    method: 'delete'
  })
}
